<html>
<body>
This inspection helps to convert unmodifiable collections created before Java 9 to new collection factory methods
like <code>List.of</code> or <code>Set.of</code>. Also since Java 10 the conversion to <code>List.copyOf</code>, etc. could be suggested.
<!-- tooltip end -->
<p>Note that Java 9 collection factory methods do not accept null values. Also, set elements and map keys are required to be different.
It's not always possible to statically check whether original elements are different and not null. Using the checkbox you may enforce
the inspection to warn only if original elements are compile-time constants.</p>
<p>
  Also it should be noted that some query methods like <code>Collection.contains()</code> or <code>Map.get</code>
  don't tolerate nulls as well. E.g., <code>Collection.contains()</code> 
  throws a NullPointerException instead of returning false. 
  Thus, even if the collection is initialized with non-null values only, the semantics of the code may change after migration.
</p>
<p>This inspection is available since Java 9 only.</p>
<small>New in 2017.2</small>
</body>
</html>